package org.mparts.client.ui.events;

import com.google.gwt.event.shared.GwtEvent;

public class ShowNewsEvent extends GwtEvent<ShowNewsEventHandler> {

	public static Type<ShowNewsEventHandler> TYPE = new Type<ShowNewsEventHandler>();

	private boolean show;

	public ShowNewsEvent(boolean show) {
		super();
		this.show = show;
	}

	@Override
	public Type<ShowNewsEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(ShowNewsEventHandler handler) {
		handler.onShowNews(this);
	}

	public boolean isShow() {
		return show;
	}

}